﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cardlist.ascx.cs" Inherits="Com.Web.coffinegurunaru.manager.usercard.cardlist" %>
<%@ Import Namespace="Com.Library.DB.UserCard" %>
		<table cellpadding="0" cellspacing="1" style="background-color:Gray; width:100%;">
<% if ( CodeStatus == 1 ) { %>
		<tr style="background-color:Silver; height:30px;">
			<td style="text-align:center; text-align:center; width:60px; ">등록번호</td>
			<td style="text-align:center; text-align:center; width:100px; ">아이디</td>
			<td style="text-align:center; text-align:center; width:100px; ">카드번호</td>
			<td style="text-align:center; text-align:center; width:100px; ">등록일</td>
			<td style="text-align:center; text-align:center; width:100px; ">삭제</td>
		</tr>
<%		foreach(UserCardManagerEntity item in CardList) {%>
		<tr style="background-color:White; height:30px;" data="{'UserCardNo':'<%=item.UserCardNo %>'}">
			<td style="text-align:center; text-align:center; " class="m_UserCardNo"><%=item.UserCardNo %></td>
			<td style="text-align:center; text-align:center; " class="m_UserID"><%=item.UserID %></td>
			<td style="text-align:center; text-align:center; " class="m_CardNo"><%=item.CardNo %></td>
			<td style="text-align:center; text-align:center; " class="m_CreateDate"><%=item.CreateDate.ToString("yyyy-MM-dd") %></td>
			<td style="text-align:center; text-align:center; " class="m_btnRemove"><input type="button" value="삭제" class="m_CardRemove" /></td>
		</tr>
<%		} %>
<%} else {%>
		<tr style="background-color:Silver; height:30px;">
			<td style="text-align:center; text-align:center; width:60px; ">등록번호</td>
			<td style="text-align:center; text-align:center; width:100px; ">아이디</td>
			<td style="text-align:center; text-align:center; width:200px; ">카드번호</td>
			<td style="text-align:center; text-align:center; width:80px; ">삭제일</td>
			<td style="text-align:center; text-align:center; width:100px; ">관리자</td>
			<td style="text-align:center; text-align:center; width:200px; ">메모</td>
			<td style="text-align:center; text-align:center; width:100px; ">복구</td>
		</tr>
<%		foreach(UserCardManagerEntity item in CardList) {%>
		<tr style="background-color:White; height:30px;" data="{'UserCardNo':'<%=item.UserCardNo %>'}">
			<td style="text-align:center; text-align:center; " class="m_UserCardNo"><%=item.UserCardNo %></td>
			<td style="text-align:center; text-align:center; " class="m_UserID"><%=item.UserID %></td>
			<td style="text-align:center; text-align:center; " class="m_CardNo"><%=item.CardNo %></td>
			<td style="text-align:center; text-align:center; " class="m_RemoveDate"><%=item.RemoveDate.ToString("yyyy-MM-dd")%></td>
			<td style="text-align:center; text-align:center; " class="m_ManagerName"><%=item.ModifyManagerName%></td>
			<td style="text-align:center; text-align:center; " class="m_Desc"><%=item.Desc%></td>
			<td style="text-align:center; text-align:center; " class="m_btnRestore"><input type="button" value="복구" class="d_CardRestore" /></td>
		</tr>
<%		} %>
<% } %>
		</table>